package dao.impl;

import dao.DeptDao;
import dao.UserDao;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import pojo.Dept;
import pojo.User;
import utils.MyBatisUtil;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

public class DeptDaoImpl implements DeptDao {
    @Override
    public List<Dept> findAll() {
        return MyBatisUtil.getSession().getMapper(DeptDao.class).findAll();
    }
}
